﻿using System.Collections.Generic;

namespace D.ATN.HttpUtil
{
    /// <summary>
    /// 返回数据
    /// </summary>
    public class ResponseRes<T>
    {
        public int status { get; set; } = 200;
        /// <summary>
        /// 操作是否成功
        /// </summary>
        public bool success { get; set; } = false;
        /// <summary>
        /// 返回代码
        /// </summary>
        public int code { get; set; }
        /// <summary>
        /// 提示信息
        /// </summary>
        public string message { get; set; }
        /// <summary>
        /// 提示信息
        /// </summary>
        public string msg { get; set; }
        /// <summary>
        /// 返回数据
        /// </summary>
        public T data { get; set; }

        /// <summary>
        /// 返回数据集合
        /// </summary>
        public T response { get; set; }
        /// <summary>
        /// 返回数据集合arry
        /// </summary>
        public List<T> dataArry { get; set; }
    }

    public class ResponseErrorRes
    {
        public long timestamp { get; set; }
        public long status { get; set; }
        public string error { get; set; }
        public string message { get; set; }
        public string path { get; set; }
    }
}
